package com.bed.lovewithpatientbed.service;

import com.bed.lovewithpatientbed.common.bean.LayUiPageBean;
import com.bed.lovewithpatientbed.pojo.Dealer;
import com.bed.lovewithpatientbed.pojo.PageBean;

import java.util.Date;
import java.util.List;

/**
 * @author myp
 * @version 1.0.0
 * @ClassName DealerService.java
 * @Description 经销商service接口
 */
public interface DealerService {
    /**
     * @title 新增经销商
     * @description 
     * @author myp 
     * @updateTime   
     * @throws 
     */
    Integer saveDealer(Dealer dealer);
    /**
     * @title 修改经销商信息
     * @description 
     * @author myp 
     * @updateTime   
     * @throws 
     */
    Integer updateDealer(Dealer dealer);
    /**
     * @title 经销商删除
     * @description 软删除
     * @author myp
     * @updateTime
     * @throws
     */
    Integer removeDealerDo(Dealer dealer);
    /**
     * @title 查询经销商列表
     * @description 组合查询，分页查询
     * @author myp 
     * @updateTime   
     * @throws 
     */
    List<Dealer> selectDealerList(LayUiPageBean pageBean, Dealer dealer, Date staData, Date endDate);
    /**
     * @title 查询经销商
     * @description 根据经销商编号进行
     * @author myp 
     * @updateTime   
     * @throws 
     */
    Dealer selectDealer(Integer dealerId);

    /**
         * @title 执行全查
         * @description
         * @author yg
         * @updateTime
         * @throws
         */
    List<Dealer> getAll();

    Integer getCount(Dealer dealer, Date staData , Date endDate);

    /**
         * @title 根据用户电话查询用户是否为经销商
         * @description
         * @author yg
         * @updateTime
         * @throws
         */
   Dealer isDealer(String dealerPhone);
}
